<template>
  <Demo @hello="hello" msg="尚硅谷">
    <template v-slot:qwe>
      <span>尚硅谷</span>
    </template>
  </Demo>
</template>

<script>
import Demo from "./components/Demo.vue";
export default {
  name: "App",
  components: {
    Demo,
  },
  setup() {
    function hello(value) {
      alert(`hello,${value}`);
    }
    return {
      hello,
    };
  },
};
</script>

<style></style>
